package org.offerproject.shortlink.admin.common.enums;

import org.offerproject.shortlink.admin.common.convention.erroecode.IErrorCode;

/**
 * Classname: UserErrorCode
 * Package: org.offerproject.shortlink.admin.common.enums
 * Description:
 *
 * @author: 杨晨辉
 * @CreateTime: 2024/9/13 13:27
 * @version: 1.0
 */
public enum UserErrorCodeEnum implements IErrorCode {

    USER_NOT_EXIST("B000200","用户记录不存在"),
    USER_NAME_EXIST("B000201","用户记录已存在"),
    USER_SAVE_ERROR("B000203","用户记录新增失败");



    private final String code;

    private final String message;

    UserErrorCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
